<template>
  <div class="container">
    <Category title="姓名">
      <template scope="{names}">
        <ul>
          <li v-for="(item, index) in names" :key="index">{{ item }}</li>
        </ul>
      </template>
    </Category>
    <Category title="姓名">
      <template scope="{names}">
        <ol>
          <li v-for="(item, index) in names" :key="index">{{ item }}</li>
        </ol>
      </template>
    </Category>
    <Category title="姓名">
      <template slot-scope="{names}">
        <h5 v-for="(item, index) in names" :key="index">{{ item }}</h5>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category.vue";
export default {
  name: "App",
  components: { Category },
};
</script>

<style scoped>
.container {
  display: flex;
  justify-content: space-around;
}
video {
  width: 100%;
}
</style>
